<script setup>
import { ref } from 'vue'

defineProps({
  title: String,
  subtitle: String,
  id: String
})

const count = ref(0)
</script>

<template>
  <div class="title" :id="'page'+id">
    <div class="titleTop">
      <div class="border left"></div>
      <span class="text">{{ title }}</span>
      <div class="border right"></div>
    </div>
    <div> {{ subtitle }} </div>
  </div>
</template>

<style lang="less" scoped>
.title {
  text-align: center;
  font-size: 14px;
  color: #000000;
  line-height: 20px;
  text-align: center;
  padding: 84px 0 42px 0;
  .titleTop{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 407px;
    margin: 0 auto;
    margin-bottom: 9px;
    .border{
      display: inline-block;
      width: 105px;
      height: 3px;
    }
    .right{
      background: linear-gradient( 270deg, rgba(255,255,255,0) 0%, #B00A0A 100%);
    }
    .left{
      background: linear-gradient( 90deg, rgba(255,255,255,0) 0%, #B00A0A 100%);
    }
    .text{
      font-weight: 500;
      font-size: 21px;
      color: #000000;
      line-height: 30px;
      text-align: left;
    }
  }
}
  @media screen and (max-width: 768px) {
    .title{
      padding: 35px 0 25px 0;
          font-weight: 400;
          font-size: 14px;
          line-height: 20px;
      .titleTop{
        width: 243px;
        .text{
          font-weight: 500;
          font-size: 21px;
          line-height: 30px;
        }
        .border{
          width: 63px;
          height: 2px;
        }
        .text{
        }
      }
    }
  }
</style>

<style lang="less" scoped>
@media screen and (prefers-color-scheme: dark) 
  {
    .title {
      color:#fff;
  }
  }
</style>
